<template>
  <CommonPage :show-footer="true">
    <template #action>
      <div v-if="route?.path == '/im/user/manage'">
        <n-button type="primary" secondary>
          <TheIcon icon="mdi:download" :size="18" class="mr-5" />
          导出用户
        </n-button>
        <n-button type="primary" class="ml-16">
          <TheIcon icon="material-symbols:add" :size="18" class="mr-5" />
          新增用户
        </n-button>
      </div>
      <div v-else-if="route?.path == '/im/user/login_log'">
        <n-button type="primary" secondary>
          <TheIcon icon="mdi:download" :size="18" class="mr-5" />
          导出日志
        </n-button>
      </div>
    </template>
    <RouterView />
  </CommonPage>
</template>

<script setup>
const route = useRoute()
</script>